<%@ include file="/WEB-INF/jsp/common/include.jsp" %>
<%@ page pageEncoding="UTF-8"%>
<c:if test="${not empty param.rating}">
  <c:set var="rating" value="${param.rating / 20}" />
  <a href="javascript:void(0)" onclick="window.open('/ad/search/rating/explain.do?flatAdId=<c:out value="${param.flatAdId}"/>',
             'rating<c:out value="${param.flatAdId}"/>', 'menubar=0,resizable=1,width=400,height=520')"
     title='Рэйтинг <%= Double.valueOf(request.getParameter("rating")).longValue() %> баллов. Кликни для расшифровки'>
    <div class="star-rating">
      <div class="selected" style="width:<c:out value="${rating * 16}"/>px;"></div>
    </div>
  </a>
</c:if>
